<%@ page language="java" contentType="text/html; charset=ISO-8859-1" import="java.sql.*"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
 <h1>Search Result:</h1> <p><hr> 
 <table border='1'><tr><td>ID</td><td>name</td><td>password</td></tr>
<%
	int n=0;
	ResultSet rs=(ResultSet)request.getAttribute("searchResult");
 	for(;rs.next();)
	        {
	        	out.println("<tr><td>");
	        	out.println(rs.getString(1));
	        	out.println("</td><td>");
	        	out.println(rs.getString(2));
	        	out.println("</td><td>");
	        	out.println(rs.getString(3));
	        	out.println("</td></tr>");
	        	n++;	        	
	  }
%>
</table><hr>
	You got <%=n%> records. 
	</p> <hr><a href="index.html">search again</a>
</body>
</html>